/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package base;

import java.util.ArrayList;

/**
 * @author tacio
 * A Task stands for an entry in JFeeds-U database for a given TV show.
 */
public class Task {

    private int taskId;
    private String name;
    private String searchString;
    private String[] excludedSearchStrings;
    private String url;
    private ArrayList<Download> downloads;

    public Task(String name, String searchString, String urlFeed){
        this.name = name;
        this.searchString = searchString;
        this.url = urlFeed;
    }
    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the searchString
     */
    public String getSearchString() {
        return searchString;
    }

    /**
     * @param searchString the searchString to set
     */
    public void setSearchString(String searchString) {
        this.searchString = searchString;
    }

    /**
     * @return the downloads
     */
    public ArrayList<Download> getDownloads() {
        return downloads;
    }

    /**
     * @param downloads the downloads to set
     */
    public void setDownloads(ArrayList<Download> downloads) {
        this.downloads = downloads;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * @return the taskId
     */
    public int getTaskId() {
        return taskId;
    }

    /**
     * @param taskId the taskId to set
     */
    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

}
